#ifndef __GET_FILE_PROPERTIES_H__
#define __GET_FILE_PROPERTIES_H__

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#define FILE_LIST '3'
#define FILE_DATA '4'
#define FILE_DATA_SEND_COMPLETE '5'

typedef struct
{
    int FileNum;
    char FileName[1024][32];
} g_fileList;

typedef struct
{
    char name[32];      //文件名
    int size;           //大小
    long long timetamp; //修改时间
} file_stat;            //储存视频文件属性
typedef struct
{
    int count;                //文件个数
    int total_size;           //目录总大小
    file_stat file_ptr[1024]; //储存视频文件属性
} file_list;

#define PUMP_CONFIG_FILE_PATH "/home/pi/QGCConfig/pumpDataNum"
#define SOUNDING_CONFIG_FILE_PATH "/home/pi/QGCConfig/soundingDataNum"
#define MAX_FILE_NUM 1024

int file_properties(file_list *s_file_list, char *filePath);
int file_space_size(char *filePath);
void upFileNum(char *filePathName, int FileNum);
void file_Contrast(char *filePath, int fileNum);
int sounding_data_init();
int pump_data_init();
#endif